package com.hutao.manage.model;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 抗菌药物信息
 * @author lyh
 *
 */
public class HospitalVisitAntibacterialDrugInfo {

	/**
	 * visitGuid
	 */
	private String visitGuid;
	
	/**
	 * 抗菌药物明细集合
	 */
	private List<HospitalVisitAntibacterialDrugRecord> antibacterialDrugRecords = new ArrayList<HospitalVisitAntibacterialDrugRecord>();

	@JsonIgnore
	public void clearEmpty(){
		for (int i = this.antibacterialDrugRecords.size()-1; i >=0; i--) {
			HospitalVisitAntibacterialDrugRecord antibacterialDrugRecord = this.antibacterialDrugRecords.get(i);
			if(antibacterialDrugRecord.isEmpty()){
				this.antibacterialDrugRecords.remove(i);
			}
		}
	}
	
	public String getVisitGuid() {
		return visitGuid;
	}

	public void setVisitGuid(String visitGuid) {
		this.visitGuid = visitGuid;
	}

	public List<HospitalVisitAntibacterialDrugRecord> getAntibacterialDrugRecords() {
		return antibacterialDrugRecords;
	}

	public void setAntibacterialDrugRecords(
			List<HospitalVisitAntibacterialDrugRecord> antibacterialDrugRecords) {
		this.antibacterialDrugRecords = antibacterialDrugRecords;
	}

	
}
